<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$query=mysql_query("select * from dosenwali");
	
?>
<center>
<table border="1">
	<th colspan="4">
		Tampilan Dosen
	</th>
	<tr>
		<td>Kode Dosen</td>
		<td>Nama</td>
		<td colspan="2">Action</td>
	</tr>
	<?
		while ($row=mysql_fetch_row($query))
		{
			echo "<tr><td>$row[0]</td>
			<td>$row[1]</td>
			<td><a href=form_edit_dosen.php?kodedsn=$row[0]>Edit</a></td>
			<td><a href=del_dosen.php?kodedsn=$row[0]>Delete</a></td>
			</tr>";
		}?>
	<tr>
		<td colspan="4"><a href="form_add_dosen.php">Tambah Dosen</a></td>
	</tr>
	<tr>
		<td colspan="4"><a href="menu_admin.php">Back to Menu Admin</a></td>
	</tr>
</table>
</center>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>